import {RegisterPayload,LoginPayload} from "@/typings/user"
import http from "@/utils/request";

export const validate = () => {
  return http.get("api/user/validate")
};

export function register(values:RegisterPayload){
  return http.post("api/user/register",values);
}

export function login(values:LoginPayload){
  return http.post("api/user/login",values);
}